// import {
// 	createRouter,
// 	createWebHashHistory
// } from 'vue-router'

import * as VueRouter from 'vue-router'
// import Vue from 'vue'
import HelloWorld from '../components/HelloWorld'
import Login from '../components/Login.vue'

// Vue.use(VueRouter)

const routes = [{
	path: '/',
	component: Login,
	name: 'Login'
}, {
	path: "/he",
	component: HelloWorld,
	name: 'HelloWorld'
}]

// const route = createRouter({
// 	history: createWebHashHistory(),
// 	routes,
// })

const route = VueRouter.createRouter({
	history: VueRouter.createWebHashHistory(),
	
  routes,
})

export default route
